home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / ttyname.man < prev    next >
Encoding:
Text File  |  1989-02-28  |  1.4 KB  |  67 lines

  1.  
  2.  
  3.  
  4. TTYNAME               C Library Procedures                TTYNAME
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      ttyname, isatty, ttyslot - find name of a terminal
  10.  
  11. SSYYNNOOPPSSIISS
  12.      cchhaarr **ttttyynnaammee((ffiilleeddeess))
  13.  
  14.      iissaattttyy((ffiilleeddeess))
  15.  
  16.      ttttyysslloott(())
  17.  
  18. DDEESSCCRRIIPPTTIIOONN
  19.      _T_t_y_n_a_m_e returns a pointer to the null-terminated path name
  20.      of the terminal device associated with file descriptor
  21.      _f_i_l_e_d_e_s (this is a system file descriptor and has nothing to
  22.      do with the standard I/O FILE typedef).
  23.  
  24.      _I_s_a_t_t_y returns 1 if _f_i_l_e_d_e_s is associated with a terminal
  25.      device, 0 otherwise.
  26.  
  27.      _T_t_y_s_l_o_t returns the number of the entry in the _t_t_y_s(5) file
  28.      for the control terminal of the current process.
  29.  
  30. FFIILLEESS
  31.      /dev/*
  32.      /etc/ttys
  33.  
  34. SSEEEE AALLSSOO
  35.      ioctl(2), ttys(5)
  36.  
  37. DDIIAAGGNNOOSSTTIICCSS
  38.      _T_t_y_n_a_m_e returns a null pointer (0) if _f_i_l_e_d_e_s does not
  39.      describe a terminal device in directory `/dev'.
  40.  
  41.      _T_t_y_s_l_o_t returns 0 if `/etc/ttys' is inaccessible or if it
  42.      cannot determine the control terminal.
  43.  
  44. BBUUGGSS
  45.      The return value points to static data whose content is
  46.      overwritten by each call.
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0               May 15, 1985                          1
  64.  
  65.  
  66.  
  67.